<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>初次接触hexo --学习步骤 | 技术笔记</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="初次接触hexo,对于我个人来讲,这确实是一个快速搭建博客的框架，对于初学者很简单便捷。（当然最一个记录笔记也是很好的选择）  hexo 介绍（Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页） 特点  快速 简洁且高效 博客框架   快速开始  首先得安装环境（nodejs和npm是必备的，还有最主">
<meta property="og:type" content="article">
<meta property="og:title" content="初次接触hexo --学习步骤">
<meta property="og:url" content="http://wben107.gitee.io/hexo-blog/2020/05/17/%E5%88%9D%E6%AC%A1%E6%8E%A5%E8%A7%A6hexo-%E5%AD%A6%E4%B9%A0%E6%AD%A5%E9%AA%A4/index.html">
<meta property="og:site_name" content="技术笔记">
<meta property="og:description" content="初次接触hexo,对于我个人来讲,这确实是一个快速搭建博客的框架，对于初学者很简单便捷。（当然最一个记录笔记也是很好的选择）  hexo 介绍（Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页） 特点  快速 简洁且高效 博客框架   快速开始  首先得安装环境（nodejs和npm是必备的，还有最主">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-05-17T09:33:00.000Z">
<meta property="article:modified_time" content="2020-05-17T10:01:01.584Z">
<meta property="article:author" content="biner">
<meta property="article:tag" content="javascript">
<meta property="article:tag" content="nodejs">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/hexo-blog/atom.xml" title="技术笔记" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/hexo-blog/css/style.css">

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/hexo-blog/" id="logo">技术笔记</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/hexo-blog/" id="subtitle">技术笔记</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/hexo-blog/">Home</a>
        
          <a class="main-nav-link" href="/hexo-blog/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/hexo-blog/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://wben107.gitee.io/hexo-blog"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-初次接触hexo-学习步骤" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/hexo-blog/2020/05/17/%E5%88%9D%E6%AC%A1%E6%8E%A5%E8%A7%A6hexo-%E5%AD%A6%E4%B9%A0%E6%AD%A5%E9%AA%A4/" class="article-date">
  <time datetime="2020-05-17T09:33:00.000Z" itemprop="datePublished">2020-05-17</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/hexo-blog/categories/coding/">coding</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      初次接触hexo --学习步骤
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <blockquote>
<p>初次接触hexo,对于我个人来讲,这确实是一个快速搭建博客的框架，对于初学者很简单便捷。（当然最一个记录笔记也是很好的选择）</p>
</blockquote>
<h3 id="hexo-介绍"><a href="#hexo-介绍" class="headerlink" title="hexo 介绍"></a>hexo 介绍</h3><h4 id="（Hexo-是一个快速、简洁且高效的博客框架。Hexo-使用-Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页）"><a href="#（Hexo-是一个快速、简洁且高效的博客框架。Hexo-使用-Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页）" class="headerlink" title="（Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页）"></a>（Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页）</h4><ul>
<li><p>特点</p>
<ol>
<li>快速</li>
<li>简洁且高效</li>
<li>博客框架</li>
</ol>
</li>
<li><p>快速开始</p>
<ol>
<li><p>首先得安装环境（nodejs和npm是必备的，还有最主要的就是没有域名的同志需要安装git 这里我推荐使用nvm 和 nrm ,这里就不写代码了，去百度吧）</p>
</li>
<li><p>在mac电脑上安装依赖有个能会出现access 什么的文件权限错误，官方给了我们<a href="https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally" target="_blank" rel="noopener">解决办法</a></p>
</li>
<li><p>进行完上面的步骤 要安装hexo</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">npm install -g hexo-cli</span><br><span class="line">npm install hexo</span><br><span class="line">// 安装完hexo后 执行以下命令</span><br><span class="line"><span class="meta">$</span><span class="bash"> hexo init &lt;folder&gt;</span></span><br><span class="line"><span class="meta">$</span><span class="bash"> <span class="built_in">cd</span> &lt;folder&gt;</span></span><br><span class="line"><span class="meta">$</span><span class="bash"> npm install</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>发表文章并且开启服务</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new [layout] &lt;title&gt;</span><br></pre></td></tr></table></figure>

<p>example：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo new post 'this is my first article' </span><br><span class="line">hexo  -s (等价于 hexo server ) or npm run server</span><br></pre></td></tr></table></figure></li>
<li><p>部署仓库</p>
<ul>
<li>…. （百度）</li>
</ul>
</li>
</ol>
</li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://wben107.gitee.io/hexo-blog/2020/05/17/%E5%88%9D%E6%AC%A1%E6%8E%A5%E8%A7%A6hexo-%E5%AD%A6%E4%B9%A0%E6%AD%A5%E9%AA%A4/" data-id="ckak98k4i00013ms65fvqcd70" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/hexo-blog/tags/javascript/" rel="tag">javascript</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/hexo-blog/tags/nodejs/" rel="tag">nodejs</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/hexo-blog/2020/05/18/nodejs/nodejs%E8%AE%B2%E8%A7%A3%EF%BC%881%EF%BC%89/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          nodejs讲解（1）
        
      </div>
    </a>
  
  
    <a href="/hexo-blog/2020/05/17/my-first-article/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">my first article</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/hexo-blog/categories/coding/">coding</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/hexo-blog/tags/javascript/" rel="tag">javascript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/hexo-blog/tags/nodejs/" rel="tag">nodejs</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/hexo-blog/tags/javascript/" style="font-size: 10px;">javascript</a> <a href="/hexo-blog/tags/nodejs/" style="font-size: 10px;">nodejs</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/hexo-blog/archives/2020/05/">五月 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/hexo-blog/2020/05/24/nodejs/%E5%AD%A6%E4%B9%A0mongodb%E7%9A%84%E5%9F%BA%E7%A1%80%E7%94%A8%E6%B3%95%20%E5%A2%9E%E5%88%A0%E6%94%B9%E6%9F%A5+%E8%81%9A%E5%90%88%E6%9F%A5%E8%AF%A2/">学习mongodb的基础用法 增删改查 + 聚合查询</a>
          </li>
        
          <li>
            <a href="/hexo-blog/2020/05/23/nodejs/nodejs%E7%9A%84mvc(2)/">nodejs的mvc</a>
          </li>
        
          <li>
            <a href="/hexo-blog/2020/05/18/nodejs/nodejs%E8%AE%B2%E8%A7%A3%EF%BC%881%EF%BC%89/">nodejs讲解（1）</a>
          </li>
        
          <li>
            <a href="/hexo-blog/2020/05/17/%E5%88%9D%E6%AC%A1%E6%8E%A5%E8%A7%A6hexo-%E5%AD%A6%E4%B9%A0%E6%AD%A5%E9%AA%A4/">初次接触hexo --学习步骤</a>
          </li>
        
          <li>
            <a href="/hexo-blog/2020/05/17/my-first-article/">my first article</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 biner<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/hexo-blog/" class="mobile-nav-link">Home</a>
  
    <a href="/hexo-blog/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/hexo-blog/fancybox/jquery.fancybox.css">

  
<script src="/hexo-blog/fancybox/jquery.fancybox.pack.js"></script>




<script src="/hexo-blog/js/script.js"></script>




  </div>
</body>
</html>